

<template>
  <MainVue></MainVue>
  <side v-if="route.name != '/login' && route.name != '/error'"></side>
  <bottom></bottom>
</template>
<script setup lang="ts">
import bottom from "./components/bottom.vue"
import MainVue from "./components/main.vue"
import side from "./components/side.vue"
import { useRoute } from "vue-router";
import { main } from "./store";
import { GetToken } from "./utils/Token";
const route = useRoute()
const Mains = main()

// 当存在token
if (GetToken()) {
  Mains.WebScoketSerive()

}
</script>
<style scoped></style>
